import './assets/main.css'
import {createApp} from 'vue'
import App from './App.vue'
import {router} from "@/router/index.js";
import emitter from '@/utils/event_bus.js'
// 通用字体
import 'vfonts/Lato.css'
// 等宽字体
import 'vfonts/FiraCode.css'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import naive from 'naive-ui'
import {createPinia} from "pinia"

const app = createApp(App)

app.config.globalProperties.emitter = emitter

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

app.use(pinia)
app.use(naive)
app.use(router)
app.mount('#app')
